package com.xueyi.operations.domain.po;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.operations.domain.dto.OpFaultCloseDto;
import com.xueyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.TableField;
import static com.baomidou.mybatisplus.annotation.SqlCondition.*;

import java.io.Serial;

import static com.xueyi.common.core.constant.basic.EntityConstants.STATUS;
import static com.xueyi.common.core.constant.basic.EntityConstants.SORT;
import static com.xueyi.common.core.constant.basic.EntityConstants.NAME;

/**
 * 流程结果 持久化对象
 *
 * @author lwb
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "流程结果 持久化对象")
@TableName(value = "op_fault_close", excludeProperty = { STATUS, SORT, NAME })
public class OpFaultClosePo extends TBaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 故障管理ID */
    @Schema(name = "故障管理ID")
    @Excel(name = "故障管理ID")
    protected Long processId;

    /** 处理状态 */
    @Schema(name = "处理状态")
    @Excel(name = "处理状态")
    protected String processingStatus;

    /** 处理结果 */
    @Schema(name = "处理结果")
    @Excel(name = "处理结果")
    protected String processingResult;

    /** 评分 */
    @Schema(name = "评分")
    @Excel(name = "评分")
    protected BigDecimal score;

    /** 评价内容 */
    @Schema(name = "评价内容")
    @Excel(name = "评价内容")
    protected String content;

    /** 备注 */
    @Schema(name = "备注")
    @Excel(name = "备注")
    protected String remark;

    /** 关闭时间 */
    @Schema(name = "关闭时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "关闭时间")
    protected Date closeTime;

    /** 受理用户 */
    @Schema(name = "受理用户")
    @Excel(name = "受理用户")
    protected Long acceptorUser;

    /** 受理用户名 */
    @Schema(name = "受理用户名")
    @Excel(name = "受理用户名")
    protected String acceptorUserName;

}
